//
//  WangYaRongViewController.m
//  B段框架
//
//  Created by K。 on 15/7/15.
//  Copyright (c) 2015年 寇广超. All rights reserved.
//

#import "WangYaRongViewController.h"
#import "WangViewController.h"
#import "YaViewController.h"
#import "RongViewController.h"
#import "SCNavTabBarController.h"
@interface WangYaRongViewController ()

@end

@implementation WangYaRongViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"哼嗯"
                                                                              style:UIBarButtonItemStylePlain
                                                                             target:self
                                                                             action:@selector(goBack)];
    
        WangViewController *Wang = [[WangViewController alloc]init];
        Wang.title = @"王";
        YaViewController *Ya = [[YaViewController alloc]init];
        Ya.title = @"雅";
        RongViewController *Rong = [[RongViewController alloc]init];
        Rong.title = @"蓉";
    
        SCNavTabBarController *navTabBarController = [[SCNavTabBarController alloc] init];
    
        navTabBarController.subViewControllers = @[Wang,Ya,Rong];
        navTabBarController.Number = navTabBarController.subViewControllers.count;
        navTabBarController.showArrowButton = NO;
        navTabBarController.navTabBarColor = [UIColor colorWithRed:0.6 green:0.4 blue:0.5 alpha:1.0];
        [navTabBarController addParentController:self];
}
-(void)goBack
{
   [self dismissViewControllerAnimated:YES completion:^{
       
       
   }];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
